this.onmessage = function(e){
    console.log("开始运算");
    let n=0;
    for (let i = 0; i < e.data; i++) {
        n += Math.random();
    }
    console.log("运算结束", n);
    this.close();
}
